
#nav {
    /*width: 1260px;*/
    height: 60px;
    margin: 0 auto;

    list-style-type: none;
    width: 100%;
    display: flex;
    /*background-color: beige;*/
    background-color: mediumpurple;
    /*background-image: url("../images/navbg.jpg");*/
    /*background-image: url("../images/falltree.jpg");*/
    /*margin: 0;*/
}

.nav {
    width: 100%;
    height: 100px;
    background-color: blueviolet;
    position: sticky;
    top: 0;
    z-index: 999;
}

/*@media screen and (max-width: 640px) {*/
/*    #nav {*/
/*        height: 120px*/
/*    }*/
/*}*/
/*@media screen and (max-width: 1120px) {*/
/*    #nav {*/
/*        height: 180px*/
/*    }*/
/*}*/

#nav * {
    margin: 0;
    padding: 0;
}

#nav > ul {
    /*width: 800px;*/
    /*height: 60px;*/
    padding: 0;
    float: left;
    list-style-type: none;
    margin: 0;

}

.ul-no-dot{
    list-style-type: none;
}

#nav li {
    width: 160px;
    height: 60px;
    float: left;
    position: relative;
    margin: 0;
    padding: 0;
    transition: all 1s;
}


#nav ul a {
    display: block;
    width: 160px;
    height: 60px;
    font-family: 微软雅黑, serif;
    font-size: 24px;
    color: white;
    text-align: center;
    line-height: 60px;
    text-decoration: none;
    padding: 0;
    margin: 0;
    /*background-color: mediumpurple;*/
}

#nav a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

#nav li ul {
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
    width: 160px;
    height: 180px;
    /*background: url(../images/navbg.jpg);*/
    background-color: mediumpurple;
    display: none;
    list-style-type: none;
    margin: 0;

}

@keyframes show-list{
    from{

        display: none;
    }
    to {
        display: block;
    }
}
#nav li:hover ul {
    transition:1s;
    display: block;
    animation: show-list 1s;
    /*transform: skew();*/
}

/*#nav li:hover #nav li ul {*/
/*    !*display: block;*!*/
/*    animation: show-list 1s;*/
/*}*/

/*sgy*/

/*Chapter14*/
/*面包屑导航*/
.crumb-nav {
    font-size: 1rem;
    /*height: 30px;*/
    line-height: 30px;
    /*text-align: center;*/
    /*margin: 5px 0px;*/
    /*color: white;*/
    /*background-color: lightgreen;*/
    /*color: black;*/
}
.crumb-nav-container{
    height: 30px;
    /*background-color: gold;*/
    text-indent: 20px;
    display: inline-flex;
    /*color: mediumvioletred;*/
}


.crumb-nav a {
    text-decoration: none;
    font-size: 1em;
    /*color: hsl(0,0%,0%);*/
    /*color: white;*/
    color: black;
}

.crumb-nav a:hover {
     /*color: hsl(20, 30%, 50%);*/
     /*color: #4d90fe;*/
     /*color: darkgoldenrod;*/
     color: dodgerblue;
 }

.crumb-nav-water a:hover {
    /*color: hsl(20, 30%, 50%);*/
    /*color: #4d90fe;*/
    color: cornflowerblue;
}


.selected-nav{
    /*background-color: rebeccapurple;*/
    background-color:  rgba(0, 0, 0, 0.3);
}
